package com.example.department.service.impl;

import com.example.department.mapper.DeptMapper;
import com.example.department.pojo.Dept;
import com.example.department.service.DeptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class DeptServiceimpl implements DeptService {
    @Autowired
    private DeptMapper deptmapper;


    @Override
    public List<Dept> list() {
        return deptmapper.list();
    }

    @Override
    public void delete(Integer id) {
        deptmapper.delete(id);
    }
}
